package xkp.lesson2;

import xkp.lesson1.BaseDao;
import xkp.lesson1.Box3;
import xkp.lesson1.Person;
import xkp.lesson1.PersonDao;

public class TestFanxing {
	public static void main(String[] args) {
		Box3<Person> box3 = new Box3<Person>(new Person(20, "张三"));
		fun(box3);
		
		BaseDao baseDao = new PersonDao();
		//本质上此处是有问题的
		fun(baseDao);
	}
	
	//此处参数的类型为泛型类型
	public static void fun(Box3<Person> obj) {
		System.out.println(obj.getData());
	}
	
	public static void fun(BaseDao<String> dao) {
		
	}

}
